package cn.psvmc.cxzapi.mapper.order;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.common.OrderEntity;
import cn.psvmc.cxzapi.model.order.TOrderLog;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 订单操作日志表 Mapper 接口
 * @Author auto
 * @Date 2024-08-12
 */
public interface TOrderLogMapper extends MyBaseMapper<TOrderLog> {
    //列表
    IPage<Map<String, Object>> listAll(Page<TOrderLog> iPage,@Param("entity") OrderEntity entity);

    //获取最后一条日志
    Map<String, Object> getLastLogByOrderCode(@Param("orderCode") Object orderCode);

    //保存日志
    void save(@Param("log") TOrderLog log);
}
